package com.common.utils;

import org.springframework.mobile.device.Device;
public class DeviceUtil {
    public static String getDevice(Device device){
        if (device.isMobile()) {
            return "手机";
        } else if (device.isTablet()) {
            return "平板";
        } else if(device.isNormal()){
            return "PC";
        }else {
            return "其他";
        }
    }
}